package com.chuan.thinkingjava.think1;

import org.apache.log4j.Logger;

public class Test2 {
	static Logger logger = Logger.getLogger(Test2.class);
	
	public static void main(String[] args) {
		Letter x = new Letter();
		x.c = 'a';
		logger.debug("1: x.c = " + x.c);
		f(x);
		logger.debug("2: x.c = " + x.c);
		
	}
	static void f(Letter y){
		y.c = 'z';
	}
}

class Letter{
	char c;
}